home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacAddict 118
/
MacAddict 118 2006-06.toast
/
Software
/
Graphics & Multimedia
/
Noise Buster 1.1 (trial).dmg
/
Noise Buster.pkg
/
Contents
/
Resources
/
postflight
< prev
next >
Wrap
Text File
|
2006-03-17
|
871b
|
44 lines
#!/usr/bin/perl
my $debug = 0;
my $target_location = $ARGV[1];
$target_location .= '/' unless $target_location =~ /\/$/;
print "target_loc = $target_location\n" if $debug;
if ( $target_location !~ /^\// )
{
exit(1);
}
###############################################################
my $our_root = '/Library/Application Support/AKVIS LLC/';
my $our_dir = $target_location;
#system ( 'rm "' . $our_dir . 'Askfolder.a"' );
system ( 'chmod 777 "' . $our_root . '"' );
system ( 'chmod 777 "' . $our_dir . '"' );
my $hlp = $our_dir . 'help';
system ( 'chmod 777 "' . $hlp . '"' );
foreach my $lng ( qw/en de fr es image/ )
{
my $hlp_lng = "$hlp/$lng";
system ( 'chmod 777 "' . $hlp_lng . '"' );
my $mask = '"' . $hlp_lng . '/*"';
foreach my $f (<$mask>)
{
system ( 'chmod 666 "' . $f . '"' );
}
}
# system( 'open "' . $hlp . '/index.html"' );
exit( 0 );